<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link type="text/css" rel="stylesheet"
	href="../../../css/bootstrap.min.css"
	th:href="@{/css/bootstrap.min.css}">
<link type="text/css" rel="stylesheet"
	href="../../../css/_all-skins.min.css"
	th:href="@{/css/_all-skins.min.css}">
<link type="text/css" rel="stylesheet"
	href="../../../css/AdminLTE.min.css" th:href="@{/css/AdminLTE.min.css}">
</head>
<body class="hold-transition skin-blue sidebar-mini">
	<div class="wrapper">
		<header class="main-header">
			<a class="logo" href="#"> <span class="login-mini"><b>A</b>LT</span>
				<span class="logo-lg"><b>Admin</b>LTE</span>
			</a>
			<nav class="navbar navbar-static-top">
				<a href="#" class="sidebar-toggle" data-toggle="push-menu"
					role="button"> <span>Toggle navigation</span>
				</a>
				<div class="navbar-custom-menu">
					<ul class="navbar-custom-menu"></ul>
				</div>
			</nav>
		</header>

		<aside class="main-sidebar">
			<section class="sidebar">
				<div class="user-panel">
					<div class="pull-left image">
						<img alt="" src="../../../images/user2-160x160.jpg"
							th:src="@{/images/user2-160x160.jpg}">
					</div>
					<div class="pull-left info">
						<p>Alexander Pierce</p>
						<a href="#"><i class="fa fa-circle text-success"></i>Online</a>
					</div>
				</div>
				<form>
					<div class="input-group">
						<input type="text" name="q" class="form-control">
					</div>
				</form>
			</section>
		</aside>
		<div class="content-wrapper">
			<div class="content">
				<div class="box box-default">
					<div class="box-title">
						<a href="add.html" th:href="@{/building/add.html}" class="btn btn-primary">添加门牌号</a>
					</div>
					<div class="box-body">
						<table class="table">
							<thead>
								<tr>
									<th>门牌号</th>
									<th>查看</th>
								</tr>
							</thead>
							<tbody>
								<tr th:each="obj : ${buildings}">
									<td th:text="${obj.name}">text</td>
									<td><a href="#">查看</a></td>
								</tr>
								<tr th:if="${builngs == null}">
									<td colspan="2">当天用户楼房数量为0，请点击“添加门牌号”初始化信息</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>